package com.zy.service.bs;

import com.zy.entity.bs.CarType;
import com.zy.pojo.query.bs.CarTypeQuery;
import com.zy.pojo.vos.common.PageVo;
import com.zy.service.base.BaseService;
import com.zy.utils.tree.BaseTree;

public interface CarTypeService extends BaseService<CarType> {

	/**
	 * 分页
	 * 
	 * @param carType
	 * @param start
	 * @param limit
	 * @return
	 */
	PageVo pageCarType(CarTypeQuery carTypeQuery, Integer start, Integer limit);

	/**
	 * 新增
	 * 
	 * @param carType
	 */
	void saveCarType(CarType carType);
	
	/**
	 * 更新
	 *
	 * @param carType
	 */
	void updateCarType(CarType carType);

	/**
	 * 删除
	 * 
	 * @param id
	 */
	void removeCarType(long id);

	/**
	 * 恢复
	 * 
	 * @param id
	 */
	void recover(long id);

    /**
     * 获取车行
     * @return
     */
    BaseTree carType();

}
